package org.tema.ejb;

import javax.ejb.*;
import org.tema.entities.Product;
import java.util.*;


public interface ProductBeanLocal {
	public Product addProduct( String name, String description, String version, String creatorName );
	public Product updateProduct(Product product, String modifierName);
	public Product undoProductChanges(Product product);
	public void deleteProduct(Product product);
	public Product  findProductByName( String name ); //should return a list of products, another method will be implemented for that purpose
	public Collection <Product> findProductsByName( String name );
	public Product  findProductById( int id );
	public Collection <Product>  findProductByVersion( String version );//should return a list of products
	public Collection <Product> findAllProducts();
}
